/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufpb.projetoesa.dados;

/**
 *
 * @author leonardo
 */
public class DisciplinaDAOBDFactory extends DisciplinaDAOFactory {

    
    public static final int PGSQL = 1;
    private static DisciplinaDAOBDFactory discDAOFactory;
    
    /*SINGLETON*/
    public static DisciplinaDAOBDFactory getInstance(){
        if (discDAOFactory == null)
            return new DisciplinaDAOBDFactory();
        return discDAOFactory;
    }
    
    // construtor
    private DisciplinaDAOBDFactory(){
        //TODO
    }    
    
    @Override
    public DisciplinaDAO getDisciplinaDAO(int tipo) {
        
        switch (tipo){
            case PGSQL:
                return DisciplinaDAOPostgreSQL.getInstance();
            default:
                return null;
        }
        
    } 
    
    
}
